package com.hzit.controller;


import com.hzit.config.DBProperties;
import com.hzit.pojo.R;


import net.bytebuddy.asm.Advice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.sql.DataSource;


/**
 * 类名：
 * 作者：WF
 * 功能：
 */
@RestController
@RequestMapping("/user")
public class UserController {
	// @Autowired
	// private DBProperties properties;
	@Autowired
	private DataSource dataSource;
	@Autowired
	private R r;
	@GetMapping("/list")
	public R list(){
		// System.out.println("proper = " + properties);
		System.out.println("dataSource = " + dataSource);
		System.out.println("r = " + r.getData());
		return R.ok();
	}
}
